package com.zhuxiaomei.entity.restaurant;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 表名：restaurant_order_detail
*/
@Table(name = "restaurant_order_detail")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RestaurantOrderDetail {
    /**
     * 主键
     */
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;

    /**
     * 菜品id
     */
    @Column(name = "dish_id")
    private Long dishId;
    /**
     * 菜品名称
     */
    @Column(name = "dish_name")
    private String dishName;

    /**
     * 菜品图片路径
     */
    @Column(name = "dish_image")
    private String dishImage;

    /**
     * 订单id
     */
    @Column(name = "order_no")
    private String orderNo;

    /**
     * 菜品数量
     */
    private Integer quantity;

    /**
     * 菜品价格
     */
    private BigDecimal price;
}